//
//  BELookJourneyController.swift
//  BEGlobalOiler
//
//  Created by KKING on 16/9/12.
//  Copyright © 2016年 Bullseye Energy pte ltd. All rights reserved.
//

import UIKit

class BELookJourneyController: UIViewController {
    
    var orderTalentId: String = ""

    @IBOutlet weak var journeyTable: UIView!
        
    var tableVi: JHTableChart = {
        let tableVi = JHTableChart()
        tableVi.tableTitleString = "zhangsan's Journey";
        tableVi.colTitleArr = ["Other|Statu","Time","Address"];
        tableVi.minHeightItems = 30
        tableVi.lineColor = COLOR_NAV_ITEM_NORMAL
        tableVi.backgroundColor = COLOR_ALL_BG
        return tableVi
    }()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = COLOR_ALL_BG
//        print(orderTalentId)
    }
    
    override func viewWillLayoutSubviews() {
        super.viewWillLayoutSubviews()
        
        tableVi.frame = journeyTable.bounds
        tableVi.dataArr = [
            ["TechConfirmed","9/13 13:00","xxxxxx"],
            ["Departed","9/15 12:00","xxxxxx"],
            ["Repairing","9/15 12:30","xxxxxx"],
            ["Repaired","",""],
            ["PrePackage","",""],
            ["PgUploaded","",""]
        ]
        tableVi.showAnimation()
        journeyTable.addSubview(tableVi)
    }
    
    @IBAction func lookPackageButtonDidClick(sender: UIButton) {
        let packageVC = BELookPackageController()
        packageVC.orderTalentId = orderTalentId
        self.navigationController?.pushViewController(packageVC, animated: true)
    }
    
}
